import radio
from microbit import *

radio.on()

while True:
    if button_a.was_pressed():
        radio.send("1")
    if button_b.was_pressed():
        radio.send("2")

    incoming = radio.receive()
    if incoming != None:
        display.show(incoming)

    sleep(100)